package com.school.mall.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.school.mall.sys.entity.MallGoodsColour;
import com.school.mall.sys.entity.MallGoodsInven;
import com.school.mall.sys.entity.queryVo.MallGoodsInvenQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品类型表 Mapper 接口
 */
@Mapper
public interface MallGoodsInvenMapper extends BaseMapper<MallGoodsInven> {


     List<MallGoodsInvenQueryVo> getColourTypeQueryVo(@Param("shoeId") Long shoeId);
    /*查询后端设置了为主页显示，即home=1的类型*/
//    List<MallGoodsTypeVo> getMallGoodsTypeVo();
    Integer getQuantity(@Param("shoeId") Long shoeId, @Param("colourId") Long colourId, @Param("sizeId") Long sizeId);

    List<MallGoodsInvenQueryVo> getSizeTypeQueryVo(@Param("shoeId") Long shoeId);
}
